// const path = require("path");
//

module.exports = {
  publicPath: process.env.NODE_ENV === "production" ? "./" : "/", //修复白屏

  productionSourceMap: !(process.env.NODE_ENV === "production"), // 关闭生成map文件

  // transpileDependencies: ["vuetify"], //不打包1 vuetify

  configureWebpack: {
    externals: {
      vue: "Vue",
      vuetify: "vuetify",
      "vue-router": "VueRouter",
      vuex: "Vuex",
      axios: "axios"

      // "element-ui": "ElementUI",
      // "vue-multiselect": "Multiselect",
    }
  },

  pluginOptions: {
    electronBuilder: {
      nodeIntegration: true,
      externals: ["ffi-napi", "ref-napi"]
    },
    i18n: {
      locale: "en",
      fallbackLocale: "en",
      localeDir: "locales",
      enableInSFC: false
    }
  }
  // chainWebpack: (config) => {
  //   // 设置快捷路径，
  //   config.resolve.alias.set("@", path.resolve("src"));
  // },
};
